#@datagrid()
#define head_foot()
<style type="text/css">.table-property {margin-top:10px; margin-bottom:10px}.table-property th { text-align:right; font-weight: normal;}.table-property td{color:#999}</style>
#end
#define content_header()
<h1>
    <a href="/agency">代理会员管理</a>
    <small>agency tables</small>
</h1>
<ol class="breadcrumb">
    <li><a href="#"><i class="fa fa-dashboard"></i> 首页</a></li>
    <li><a href="/agency/">代理</a></li>
    <li class="active">代理会员管理</li>
</ol>
#end
#define content()
<div class="box">
    <div class="box-header">
        
        <!-- 个人信息 -->
        #include("_agencyinfopart.html")
        
	<!-- 选项卡 -->
        #set(tabid="tablogin_log")
        #include("_subpage_navtabs.html")
        
        <!-- search -->
        <div class="row">
            <div class="col-md-5">
            </div>
            <div class="col-md-7">
                <form class="navbar-form navbar-right" action="/agency/login_log/1">
                    <div class="form-group">
                    	<input type="text" name="date1" class="form-control input-sm xsui-jedatepicker" placeholder="起始时间..." title="" value="#(date1??)"> - 
                        <input type="text" name="date2" class="form-control input-sm xsui-jedatepicker" placeholder="终止时间..." title="" value="#(date2??)" style="margin-right:10px">
                        <input type="hidden" name="user_id" value="#(user_id)">
                    </div>
                    <button type="submit" class="btn btn-sm btn-default">搜索</button>
                </form>
            </div>
        </div>
    </div>
    <!-- /.box-header -->
    <div class="box-body">
        <table class="xsui-datagrid table table-condensed table-bordered table-striped table-hover">
            <thead>
                <tr>
                    <th>登录时间</th>
                    <th>登录IP</th>
                    <th>登录地区</th>
                    <th>登录结果</th>
                </tr>
            </thead>
            <tbody>
                #for(x : listPage.getList())
                <tr data-key="#(x.id)">
                    <td title="">#(x.loginTimeText)</td>
                    <td title="">#(x.login_ip)</td>
                    <td title="">#(x.login_area)</td>
                    <td title="" class="text-success">成功</td>
                </tr>
                #end
            </tbody>
        </table>
        #@paginate(listPage.pageNumber, listPage.totalPage, "/agency/login_log/")
    </div>
    <!-- /.box-body -->
</div>
<!-- /.box -->
#end
#define body_foot()
<script type="text/javascript">
	xsApp.xsfnInitJeDatePicker('.xsui-jedatepicker');
</script>
#end